package com.wcs.exam.controller.admin.req;

import java.io.Serializable;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * <p>
 * Admin-素材信息-保存请求参数
 * </p>
 *
 * @author wcs
 * @since 2025-03-24
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-素材信息-保存请求参数")
public class AdminMaterialSaveReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "请选择分类目录")
    @Schema(description = "分类ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long categoryId;

    @NotBlank(message = "素材名称不能为空")
    @Schema(description = "素材名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String materialName;

    @NotNull(message = "素材类型不能为空")
    @Schema(description = "素材类型(1:视频2:音频;3:文档)", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer materialType;

    @NotNull(message = "素材大小不能为空")
    @Schema(description = "素材大小", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long materialSize;

    @Schema(description = "素材地址")
    private String materialUrl;

    @Schema(description = "点播平台")
    private Integer vodPlatform;

    @Schema(description = "存储平台")
    private Integer storagePlatform;

    @Schema(description = "状态(1转码中，2成功，3失败)")
    private Integer videoStatus;

    @Schema(description = "音视频时长，单位秒")
    private Integer videoLength;

    @Schema(description = "音视频vid")
    private String videoVid;

    @Schema(description = "文档页数，单位页")
    private Integer docPage;

    @Schema(description = "图片宽度")
    private Integer imgWidth;

    @Schema(description = "图片高度")
    private Integer imgHeight;
}
